JavaScript generator interview question

welcome to shbcf.ru